﻿@inherits Isha.Web.Mvc.IshaViewPage
@{
    string[] tabs = Request.Url.AbsolutePath.Split('/');        
}
<ul id="portal-globalnav">
    @foreach (var item in IshaModel.Navigation)
    {
        if (IshaContext.Current.Configuration.Home == item.ContentItemID)
        {
        <li class="@(IshaContext.Current.Configuration.Home == item.ContentItemID && IshaContext.Current.ContentItem.IsHome ? "selected" : "plain")">
            <a href="@Url.Content(@"~\" + @item.Link)">Home</a></li>

        }
        else
        {        
        <li class="@(item.Link == tabs[1] ? "selected" : "plain")"><a href="@Url.Content(@"~\" + @item.Link)" title="">@item.Title</a>            
             </li>
        }
    }
</ul>
